const BASE_URL = process.env.VUE_APP_API_URL_XINBIAO
// 知识融合
const knowledgeFusion = {
  getFusionList: "/knowledgeFusion/fusionList", // 知识融合列表
  batchFusion: "/knowledgeFusion/batchFusion", // 批量融合
  batchCancel: "/knowledgeFusion/batchCancel", // 批量取消
  fusionDetail: "/knowledgeFusion/fusionDetail", // 融合详情
  submitSingleStorage: "/knowledgeFusion/singleStorage", // 单独入库
  executeFusion: "/knowledgeFusion/executeFusion", // 执行融合
};

// 融合规则
const fusionRule = {
  getFusionRuleList: "/knowledgeFusion/ruleList", // 融合规则列表
  addFusionRule: "/knowledgeFusion/addRule", // 新增融合规则
  editFusionRule: "/knowledgeFusion/editRule", // 编辑融合规则
  delFusionRule: "/knowledgeFusion/delRule", // 删除融合规则
}

// 知识补全
const knowledgeCompletion = {
  getCompletionList: "/knowledgeCompletion/completionList", // 知识补全列表
  confirmStorage: "/knowledgeCompletion/confirmCompletion", // 入库
  cancelStorage: "/knowledgeCompletion/cancelCompletion", // 取消

}

// 补全规则
const completionRule = {
  getCompletionRuleList: "/knowledgeCompletion/ruleList", // 补全规则列表
  executeCompletionRule: "/knowledgeCompletion/executeRule", // 执行补全规则
  delCompletionRule: "/knowledgeCompletion/delRule", // 删除补全规则
  addCompletionRule: "/knowledgeCompletion/addRule", // 新增规则
  editCompletionRule: "/knowledgeCompletion/editRule", // 编辑规则
  verifyCompletionRule: "/knowledgeCompletion/verifyRule", // 验证规则
  getCompletionRuleDetail: "/knowledgeCompletion/ruleDetail", // 查询规则详情
}


function changeBaseUrl() {
  for (let key in knowledgeFusion) {
    knowledgeFusion[key] = BASE_URL + knowledgeFusion[key];
  }
  for (let key in fusionRule) {
    fusionRule[key] = BASE_URL + fusionRule[key];
  }
  for (let key in knowledgeCompletion) {
    knowledgeCompletion[key] = BASE_URL + knowledgeCompletion[key];
  }
  for (let key in completionRule) {
    completionRule[key] = BASE_URL + completionRule[key];
  }
}

changeBaseUrl();

export default {
  knowledgeFusion,
  fusionRule,
  knowledgeCompletion,
  completionRule,
};
